﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RotateShowScores.aspx.cs" Inherits="RotateShowScores" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Perfil jugador</title>
    <script>
    var URL;
    function Reload(cual){
       //setTimeout("window.history.go(-1)",<%=TIMER%>);
        URL = document.location.href.split('?id=')[0] + "?id=" + cual;
        setTimeout("GoURL()",<%=TIMER%>);
    }
    function GoURL(){
    document.location.href = URL;
    }
    var Players='<%=Session["ListOfPlayersRound"]%>';
    var PlayersArray = Players.split(',');
    var Actual;
    var Siguiente;
    if(document.location.href.indexOf('id')==-1){
        //Primera vez
        //alert("primera");
        document.location.href = document.location.href + "?id=" + PlayersArray[0];
    }else{        
        Actual= document.location.href.split('id=')[1];
        //alert(Actual);
        for (var i = 0; i < PlayersArray.length ; i++) {
            if (PlayersArray[i] == Actual) {
                if(i==PlayersArray.length-1){
                    Reload(PlayersArray[0]);
                }else{
                    Reload(PlayersArray[i+1]);
                }
            }
       }

        
    };
    </script>
</head>
<body>
     <form id="form1" runat="server">
     <center>        
        <table style="width:780px; background-color:White">
        <tr>
        <td align=left width=30px style="padding-left:50px"><img src="img/logo_tmap.jpg" /></td>
        <td class="Title" style="text-align:center"><div style="font-family:Arial; font-size:24px; font-weight:bold">Perfil de jugador <%=sPlayer%></div></td>                 
        </tr>        
    </table>   
    <table>
        <tr>
            <td colspan="2"><div style="font-family:Arial; font-size:18px; font-weight:bold">RESULTADOS TMAP MODERNAS</div></td>
        </tr>
        <tr>
            <td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="250" id="Object1" align="middle"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=450&height=250&data=<%=URL%>" /> <param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /> <embed src="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=450&height=250&data=<%=URL%>" quality="high" bgcolor="#FFFFFF" width="450" height="250" name="open-flash-chart" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></td>
            <td> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="250" id="graph-2" align="middle"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=400&height=250&data=<%=URL2%>" /> <param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /> <embed src="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=400&height=250&data=<%=URL2%>" quality="high" bgcolor="#FFFFFF" width="400" height="250" name="open-flash-chart" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></td>
        </tr>
        <tr>
            <td colspan="2"><div style="font-family:Arial; font-size:18px; font-weight:bold">RESULTADOS TMAP CLASICAS</div></td>
        </tr>
        <tr>
            <td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="250" id="Object2" align="middle"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=450&height=250&data=<%=URL3%>" /> <param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /> <embed src="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=450&height=250&data=<%=URL3%>" quality="high" bgcolor="#FFFFFF" width="450" height="250" name="open-flash-chart" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></td>
            <td> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="250" id="Object3" align="middle"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=400&height=250&data=<%=URL4%>" /> <param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /> <embed src="/ptss/aspnet_client/OpenFlashChart/open-flash-chart.swf?width=400&height=250&data=<%=URL4%>" quality="high" bgcolor="#FFFFFF" width="400" height="250" name="open-flash-chart" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></td>
        </tr>
    </table>      
       </center>   
    </form>
</body>
</html>
